package com.nb.nbbase2.service;

import com.nb.nbbase2.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nb.nbbase2.enums.OrderStatus;
import com.nb.nbbase2.enums.OrderStatusChangeEvent;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author 作者
 * @since 2024-10-26
 */
public interface IOrderService extends IService<Order> {


    /**
     * 创建订单
     *
     * @param order
     * @return
     */
    public Order create(Order order);

    /**
     * 对订单进行支付
     *
     * @param id
     * @return
     */
    public Order pay(Long id);

    /**
     * 对订单进行发货
     *
     * @param id
     * @return
     */
    public Order deliver(Long id);

    /**
     * 对订单进行确认收货
     *
     * @param id
     * @return
     */
    public Order receive(Long id);

}
